﻿namespace Lanbt.Core.Utility.ExceptionExtent
{
    public static class ExceptionModel
    {
        /// <summary>
        /// Redis连接错误
        /// </summary>
        public static ExceptionParam REDIS_EMPTY = new ExceptionParam(100001, "Redis连接错误");

        /// <summary>
        /// 参数错误提示
        /// </summary>
        public static ExceptionParam PARAMS_ERROR = new ExceptionParam(100002, "参数错误：{0}");

        /// <summary>
        /// 数据不存在
        /// </summary>
        public static ExceptionParam ENTITY_EXISTEN = new ExceptionParam(100003, "{0}数据不存在");

        /// <summary>
        /// 异常错误
        /// </summary>
        public static ExceptionParam EXCEPTION = new ExceptionParam(100004, "错误：{0}");

        /// <summary>
        /// 警告
        /// </summary>
        public static ExceptionParam WARING = new ExceptionParam(100005, "警告：{0}");

        /// <summary>
        /// 提醒
        /// </summary>
        public static ExceptionParam INFO = new ExceptionParam(100006, "提醒：{0}");

        #region Quartz

        /// <summary>
        /// Quartz工厂创建失败，请查看Quartz服务是否启动
        /// </summary>
        public static ExceptionParam QUARTZ_SCHEDULER_FACTORY_EMPTY => new ExceptionParam(300001, "Quartz工厂创建失败，请查看Quartz服务是否启动");

        /// <summary>
        /// 调度器获取失败
        /// </summary>
        public static ExceptionParam QUARTZ_SCHEDULER_EMPTY => new ExceptionParam(300002, "调度器获取失败");

        /// <summary>
        /// 任务已存在
        /// </summary>
        public static ExceptionParam QUARTZ_JOB_EXIST_TRUE => new ExceptionParam(300003, "任务已存在");

        /// <summary>
        /// 任务为空
        /// </summary>
        public static ExceptionParam QUARTZ_JOB_EMPTY => new ExceptionParam(300004, "任务为空");

        /// <summary>
        /// 调度器为空
        /// </summary>
        public static ExceptionParam QUARTZ_TRIGGER_EMPTY => new ExceptionParam(300005, "调度器为空");

        /// <summary>
        /// 任务类型暂无匹配
        /// </summary>
        public static ExceptionParam QUARTZ_JOB_TYPE_DEFAULT => new ExceptionParam(300006, "任务类型暂无匹配");

        /// <summary>
        /// 触发器类型暂无匹配
        /// </summary>
        public static ExceptionParam QUARTZ_TRIGGER_TYPE_DEFAULT => new ExceptionParam(300007, "触发器类型暂无匹配");

        /// <summary>
        /// 任务不存在
        /// </summary>
        public static ExceptionParam QUARTZ_JOB_EXIST_FALSE => new ExceptionParam(300008, "任务不存在");

        /// <summary>
        /// 任务名重复
        /// </summary>
        public static ExceptionParam QUARTZ_JOB_REPEAR => new ExceptionParam(300009, "任务名重复");

        #endregion
    }
}
